/*
 * @Author: 淹死De鱼5 happyjing5@sina.cn
 * @Date: 2024-03-08 22:04:33
 * @LastEditors: 淹死De鱼5 happyjing5@sina.cn
 * @LastEditTime: 2024-04-14 13:30:35
 * @FilePath: \vue-ruoyi-drp\src\api\reward\contact.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import request from '@/utils/request'

// 查询临时任务发布信息列表
export function listContact(query) {
  return request({
    url: '/reward/contact/list',
    method: 'get',
    params: query
  })
}

// 查询临时任务发布信息详细
export function getContact(contactId) {
  return request({
    url: '/reward/contact/' + contactId,
    method: 'get'
  })
}

// 新增临时任务发布信息
export function addContact(data) {
  return request({
    url: '/reward/contact',
    method: 'post',
    data: data
  })
}

// 修改临时任务发布信息
export function updateContact(data) {
  return request({
    url: '/reward/contact',
    method: 'put',
    data: data
  })
}

// 审核清欠任务
export function checkContact(data) {
  return request({
    url: '/reward/contact/editStatus',
    method: 'post',
    data: data
  })
}
// 删除临时任务发布信息
export function delContact(contactId) {
  return request({
    url: '/reward/contact/' + contactId,
    method: 'delete'
  })
}

// 添加分润
export function addShareMoney(data) {
  return request({
    url: '/reward/node/contact/add',
    method: 'post',
    data: data
  })
}
// 分润列表
export function shareMoneyTaskList(data) {
  return request({
    url: '/reward/node/pro/list',
    method: 'get',
    params: data
  })
}
// 分润详情列表
export function shareMoneyTaskInfoList(data) {
  return request({
    url: '/reward/distr/listView',
    method: 'get',
    params: data
  })
}